home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / MPW IIGS Interfaces / CIIGSIncludes / NoteSyn.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-05  |  2.6 KB  |  81 lines  |  [TEXT/MPS ]

  1. /********************************************
  2. ; File: NoteSyn.h
  3. ;
  4. ;
  5. ; Copyright Apple Computer, Inc.1986-90
  6. ; All Rights Reserved
  7. ;
  8. ********************************************/
  9. #ifndef __TYPES__
  10. #include <TYPES.h>
  11. #endif
  12.  
  13. #ifndef __NOTESYN__
  14. #define __NOTESYN__
  15.  
  16.  
  17. /* Error Codes */
  18. #define nsAlreadyInit 0x1901  /* Note Syn already initialized */
  19. #define nsSndNotInit 0x1902  /* Sound Tools not initialized */
  20. #define nsNotAvail 0x1921  /* generator not available */
  21. #define nsBadGenNum 0x1922  /* bad generator number */
  22. #define nsNotInit 0x1923  /* Note Syn not initialized */
  23. #define nsGenAlreadyOn 0x1924  /* generator already on */
  24. #define soundWrongVer 0x1925  /* incompatible versions of Sound  and NoteSyn */
  25. struct Envelope {
  26.    Byte st1BkPt; /*  */
  27.    Word st1Increment; /*  */
  28.    Byte st2BkPt; /*  */
  29.    Word st2Increment; /*  */
  30.    Byte st3BkPt; /*  */
  31.    Word st3Increment; /*  */
  32.    Byte st4BkPt; /*  */
  33.    Word st4Increment; /*  */
  34.    Byte st5BkPt; /*  */
  35.    Word st5Increment; /*  */
  36.    Byte st6BkPt; /*  */
  37.    Word st6Increment; /*  */
  38.    Byte st7BkPt; /*  */
  39.    Word st7Increment; /*  */
  40.    Byte st8BkPt; /*  */
  41.    Word st8Increment; /*  */
  42. } ;
  43. typedef struct Envelope Envelope, *EnvelopePtr, **EnvelopeHndl;
  44. struct WaveForm {
  45.    Byte wfTopKey; /*  */
  46.    Byte wfWaveAddress; /*  */
  47.    Byte wfWaveSize; /*  */
  48.    Byte wfDocMode; /*  */
  49.    Word wfRelPitch; /*  */
  50. } ;
  51. typedef struct WaveForm WaveForm, *WaveFormPtr, **WaveFormHndl;
  52. struct Instrument {
  53.    Envelope theEnvelope; /*  */
  54.    Byte releaseSegment; /*  */
  55.    Byte priorityIncrement; /*  */
  56.    Byte pitchBendRange; /*  */
  57.    Byte vibratoDepth; /*  */
  58.    Byte vibratoSpeed; /*  */
  59.    Byte inSpare; /*  */
  60.    Byte aWaveCount; /*  */
  61.    Byte bWaveCount; /*  */
  62.    WaveForm aWaveList[1]; /*  */
  63.    WaveForm bWaveList[1]; /*  */
  64. } ;
  65. typedef struct Instrument Instrument, *InstrumentPtr, **InstrumentHndl;
  66. extern pascal void AllNotesOff() inline(0x0D19,dispatcher);
  67. extern pascal Word AllocGen() inline(0x0919,dispatcher);
  68. extern pascal void DeallocGen() inline(0x0A19,dispatcher);
  69. extern pascal void NoteOff() inline(0x0C19,dispatcher);
  70. extern pascal void NoteOn() inline(0x0B19,dispatcher);
  71. extern pascal void NSBootInit() inline(0x0119,dispatcher);
  72. extern pascal void NSReset() inline(0x0519,dispatcher);
  73. extern pascal Word NSSetUpdateRate() inline(0x0E19,dispatcher);
  74. /* zero defaults to 500 */
  75. extern pascal VoidProcPtr NSSetUserUpdateRtn() inline(0x0F19,dispatcher);
  76. extern pascal void NSShutDown() inline(0x0319,dispatcher);
  77. extern pascal void NSStartUp() inline(0x0219,dispatcher);
  78. extern pascal Boolean NSStatus() inline(0x0619,dispatcher);
  79. extern pascal Word NSVersion() inline(0x0419,dispatcher);
  80. #endif
  81.